import { Code, CreateDate, DateTime, Desc, Digdit, Entity, Icon, Jsonb, PrimaryUuid, RichText, Title, UpdateDate } from "@sker/core";


@Entity({ name: 'wx_message' })
export class WxMessage {

    @PrimaryUuid()
    id: string;

    @Code({ comment: '消息种类' })
    type: string;

    @Title()
    title: string;

    @Icon()
    icon: string;

    @Desc()
    desc: string;

    @RichText()
    content: string;

    @Code({ default: '' })
    push_type: string;

    @Code({ default: '' })
    push_way: string;

    @DateTime()
    push_time: Date;

    @Digdit({ comment: '推送人数', default: 0 })
    count: number;

    @CreateDate()
    create_date: Date;

    @UpdateDate()
    udpate_date: Date;
}